package com.crr.common.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 分页结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("分页信息")
public class PageBean<T> {
@ApiModelProperty(name = "page",value = "用于记录当前第几页")
    int page;//用于记录当前第几页
    @ApiModelProperty(name = "pageSize",value = "每页的记录数")
    int pageSize;//每页的记录数
    @ApiModelProperty(name = "total",value = "总记录数")
    long total;//总记录数
    @ApiModelProperty( "分页结果")
    T list;//分页结果
}
